/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package db.core.interfaces;

import core.Book;
import java.util.Collection;

/**
 *
 * @author Anton
 */
public interface BookDAOCore
{  
    Book getBookById(long id);
    Book getBookByISBN10(String ISBN10);
    Book getBookByISBN13(String ISBN13);

    Collection<String> searchForStringBooks(String beginsWith, int maxResult);
    Collection<Book> searchForObjectBooks(String beginsWith);

    Collection<Book> getBooksByAuthor(String author);
    Collection<Book> getBooksByTitle(String title);
    Collection<Book> getAllBooks();    

    void addBook(Book book);
    void updateBook(Book book);
    void deleteBook(Book book);
}
